<template>
    <div>
        <input type="button" value="查看使用程序控制数据区域文本样式的效果" @click="open_pageoffice('/DataRegionText/Word')" /> <br /><br />
        <input type="button" value="查看原文件内容样式" @click="open_pageoffice('/DataRegionText/Word2')" /> <br /><br />
    </div>
</template>

<script>
import request from '@/utils/request'
import { POBrowser } from 'js-pageoffice'
export default {
    name: 'index',
    data() {
    return { 
      titleText:''   
    }
  },
    created: function () {
        this.index().then(response => {
            this.titleText = response;
        });
    },
    methods: {
        open_pageoffice(vue_page_url) {
            POBrowser.openWindow(vue_page_url, 'width=1200px;height=800px;');
        },
        index() {
            //发起GET请求到后端Controller的/index路由
            return request({
                url: '/index',
                method: 'get',
            })
        }
    }
}
</script>